home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 January / enter-2004-01.iso / files / maxima-5.9.0.exe / {app} / share / maxima / 5.9.0 / tests / summarize-log < prev    next >
Encoding:
Text File  |  2003-02-09  |  662 b   |  26 lines

  1. #!/bin/sh
  2.  
  3. log_file="$1"
  4. known_bugs="`dirname $1`/known-bugs"
  5. echo
  6. echo "*** Summary results for tests recorded in"
  7. echo "*** log file ${log_file}:"
  8. grep "No Errors Found" $log_file
  9. grep "Error summary:" $log_file
  10. grep "Error(s) found in.*:" $log_file
  11. no_err_count=`grep -c "No Errors Found" $log_file`
  12. err_count=`grep -c "Error summary:" $log_file`
  13. if [ "$no_err_count" = "0" ] && [ "$err_count" = "0" ]; then
  14.   echo "Unknown error in log file"
  15. fi
  16. echo
  17. if [ -f "$known_bugs" ]; then
  18.   echo "Expected failures (known bugs in this version of Maxima):"
  19.   cat "$known_bugs"
  20.   echo 
  21. fi
  22. echo "Timing:"
  23. grep time $log_file
  24. echo "*** end of summary for $log_file"
  25. echo
  26.